home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / HyperCuber Source / HyperCuber 2.0 Source.sit / HyperCuber 2.0 Source / CPolygon.h < prev    next >
Text File  |  1994-04-27  |  837b  |  31 lines

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| This file contains the interface to the CPolygon class.  A CPolygon
  3. //| is a graphics primitive.  It is an optionally filled closed polygon,
  4. //| with an optional border.
  5. //|________________________________________________________________________________
  6.  
  7. #pragma once
  8. #include "CPrimitive.h"
  9. #include <iostream.h>
  10.  
  11. CLASS CList;
  12. CLASS CPane;
  13.  
  14. class CPolygon : public CPrimitive
  15.     {
  16.     
  17.   public:
  18.  
  19.     short    boundary_color_index;            //  Boundary color of this polygon
  20.     CList    *polygon_vertex_indices;        //  Vertices of this polygon
  21.  
  22.  
  23.     void    IPolygon(CList *colors);
  24.     void    Dispose(void);
  25.     void    Draw(RGBColor *override_color, Point **screen_vertices,
  26.                             Rect *clip_rect, Boolean fAntialias);
  27.  
  28.     friend istream& operator>> (istream& s, CPolygon& polygon);
  29.  
  30.     };
  31.